﻿using MiniFox.Configurations;
using System;
using System.Collections.ObjectModel;
using System.Configuration;
using System.Security.Permissions;
using System.Web;

namespace MiniFox.Tasks.Configurations
{
    /// <summary>
    /// 
    /// </summary>
    [Section(ELEMENT_NAME)]
    public sealed class TaskItemConfigCollection : KeyedCollection<string, TaskItemConfig>
    {
        const string ELEMENT_NAME = "minifox:tasks";
        /// <summary>
        /// 
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        protected override string GetKeyForItem(TaskItemConfig config)
        {
            return config.Name;
        }
    }
}